<?php

namespace App\Models;

/**
 * Model Subject
 *
 * @property int $id
 * @property int $school_id
 * @property int $campus_id
 * @property string $subject_name
 * @property string $remark
 * @property int $status
 * @property int $ks
 * @property float $ks_value
 * @property int $cz
 * @property float $cz_value
 * @property int $qx
 * @property string $created_at
 * @property string $updated_at
 * @property string $deleted_at
 *
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject where($column, $operator = null, $value = null, $boolean = 'and')
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject whereIn($column, $values, $boolean = 'and', $not = false)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject leftJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject rightJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject get($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject find($id, $columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject first($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject select($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Subject orderBy($column, $direction = 'asc')
 * @package App\Model
 */
class Subject extends BaseModel
{
    protected $table = 'subject';

    protected $fillable = [
        'school_id', 'campus_id', 'subject_name', 'remark', 'status', 'ks', 'ks_value',
        'cz', 'cz_value', 'qx'
    ];

    public function courses(){
        return $this->hasMany(Course::class);
    }
}
